package com.carleasoft.mps.cms.business.message.controller;

import com.carleasoft.mps.cms.business.message.bean.po.MessagePersonalCenterQueryListPo;
import com.carleasoft.mps.cms.business.message.service.MessageNoteService;
import com.carleasoft.mps.core.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 个人中心留言相关的接口
 * @Author: fan
 */
@RestController
@RequestMapping("/messagePersonalCenter")
public class MessagePersonalCenterController {
    @Autowired
    private MessageNoteService messageNoteService;
    /**
     * 查询
     */
    @PostMapping("/queryList")
    public R messagePersonalCenterQueryList(@RequestBody MessagePersonalCenterQueryListPo messagePersonalCenterQueryListPo){
        return R.ok(messageNoteService.queryList(messagePersonalCenterQueryListPo));
    }
}
